public class MethodDefineTest3 {
    //需求：这个方法可以产生[0,100)的整数
    public static int getANumber(){
        return (int)(Math.random()*100);
    }

    public static void main(String[] args) {
        int a = getANumber();
        int b = getANumber();
        System.out.println("a = " + a);
        System.out.println("b = " + b);
    }
}
